<template>
  <div >
    <header>
        <span class="iconfont">&#xe6bc;</span>
        <h2>登录</h2>
        <p>
            <span class="iconfont">&#xf0112;</span>
            <span class="iconfont">&#xe71e;</span>
            <i></i>
        </p>
    </header>
    <div class="con">
        <h3>欢迎登陆小U商城</h3>
        <h1>
            <img src="images/logo.jpg" alt="">
        </h1>
        <input type="text" value="微信用户一键登录">
        <p>手机号验证注册/登录</p>
    </div>
  </div>
</template>
<script>
// import axios from "axios"
import axios from "../utils/http"
export default {
  data(){
    return{
      form_data:{
        "phone":"",
        "nickname":"",
        "password":"",
      }
    }
  },
  methods:{
    submit(){
      axios.post( "/register",this.form_data).then(
        res=>{
          console.log(res);
          if(res.data.code==200){
            this.form_data={
              "phone":"",
              "nickname":"",
              "password":"",
            }
            alert("注册成功")
          }
        }
      )
    }
  }
}
</script>
<style>
@import "../../public/css/login.css";
</style>